import 'package:flutter/material.dart';
import 'package:flutter_demo/ui/pages/image/widgets/darg_test.dart';
import 'package:flutter_demo/ui/pages/image/widgets/home_grid.dart';
import 'package:flutter_demo/ui/pages/image/widgets/home_image.dart';
import 'package:get/get.dart';

import 'index.dart';

//https://pub.flutter-io.cn/packages/interactiveviewer_gallery
//https://juejin.cn/post/7125349703079690248
class ImagePage extends GetView<ImageController> {
  static const String routeName = "/ImagePage";
  const ImagePage({Key? key}) : super(key: key);

  // 主视图
  Widget _buildView() {
    return const HomeGridPage();
    //return HomeImagePage();
    //return const GestureDemo();
  }

  @override
  Widget build(BuildContext context) {
    return GetBuilder<ImageController>(
      builder: (_) {
        return Scaffold(
          body: SafeArea(
            child: _buildView(),
          ),
        );
      },
    );
  }
}
